package com.lagou.server.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "rpc")
public class RPCServerConfig {

    private int port;

    // register-base-path
    private String registerBasePath;

    //register-zk-url
    private String registerZkUrl;

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getRegisterBasePath() {
        return registerBasePath;
    }

    public void setRegisterBasePath(String registerBasePath) {
        this.registerBasePath = registerBasePath;
    }

    public String getRegisterZkUrl() {
        return registerZkUrl;
    }

    public void setRegisterZkUrl(String registerZkUrl) {
        this.registerZkUrl = registerZkUrl;
    }
}
